import { loadStatisticAPI } from "@/api/HomeAPI"

export const getStatisticByType = async (type: string) => {

    console.log('获取统计类型:', type)
    const result = await loadStatisticAPI(type)
    if (result === null) {
        throw new Error("无法加载资源细节")
    }
    return result
}